package com.ay7.service.impl;

import com.ay7.entity.SellerInfo;
import com.ay7.repository.SellerInfoRepository;
import com.ay7.service.SellerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 卖家信息服务实现类
 * Created by wenjul
 * on 18/4/5 0005 11:46
 */
@Service
public class SellerInfoServiceImpl implements SellerInfoService {

    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        SellerInfo sellerInfo=sellerInfoRepository.findByOpenid(openid);
        return sellerInfo;

    }
}
